import request from '@/utils/request';

/**
 * GET 获取全部项目 指标数据
 * @pathParam apiVersion true
 */
export function getAllProjectIndexUsingGET({ params, data }) {
  return request('workBench/allProjectIndex', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 业务类型(下拉框)
 * @pathParam apiVersion true
 */
export function getBusinessTypeUsingGET({ params, data }) {
  return request('workBench/businessType', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 事件(下拉框)
 * @pathParam apiVersion true
 */
export function getEventUsingGET({ params, data }) {
  return request('workBench/event', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 操作人(下拉框)
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function getOperationByUsingGET({ params, data }) {
  return request('workBench/operationBy', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 项目分期分页列表
 * @pathParam apiVersion true
 * @queryParam current true
 * @queryParam pageSize true
 * @queryParam projectName false
 */
export function getPorjectStagePageListUsingGET({ params, data }) {
  return request('workBench/porjectStagePageList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 项目待办提醒分页
 * @pathParam apiVersion true
 * @queryParam current true
 * @queryParam pageSize true
 * @queryParam projectId true
 * @queryParam stagesId false
 * @queryParam state false
 * @queryParam typeId false
 */
export function getPorjectToDoPageUsingGET({ params, data }) {
  return request('workBench/porjectToDoPage', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 获取指定项目 指标数据
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function getProjectIndexUsingGET({ params, data }) {
  return request('workBench/projectIndex', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 项目最新动态
 * @pathParam apiVersion true
 * @queryParam begin false
 * @queryParam current true
 * @queryParam end false
 * @queryParam eventId false
 * @queryParam moduleTypeId false
 * @queryParam operationBy false
 * @queryParam pageSize true
 * @queryParam projectId true
 * @queryParam stagesId false
 * @queryParam versionType false
 */
export function getProjectNewDynamicPageUsingGET({ params, data }) {
  return request('workBench/projectNewDynamicPage', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 获取项目 正在进行列表
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function getProjectUnderwayListUsingGET({ params, data }) {
  return request('workBench/projectUnderwayList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 分期版本列表
 * @pathParam apiVersion true
 * @queryParam stageId true
 */
export function getStageListUsingGET({ params, data }) {
  return request('workBench/stageList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 显示分期(下拉框)
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function getStagesUsingGET_1({ params, data }) {
  return request('workBench/stages', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 系统待办提醒分页
 * @pathParam apiVersion true
 * @queryParam current true
 * @queryParam nameOrCode false
 * @queryParam pageSize true
 * @queryParam state false
 * @queryParam typeId false
 */
export function getSysToDoPageUsingGET({ params, data }) {
  return request('workBench/sysToDoPage', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 显示门户待办类型(下拉框)
 * @pathParam apiVersion true
 */
export function getTodoTypeUsingGET({ params, data }) {
  return request('workBench/todoType', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 版本类型(下拉框)
 * @pathParam apiVersion true
 */
export function getVersionTypeUsingGET({ params, data }) {
  return request('workBench/versionType', {
    method: 'GET',
    params,
    data,
  });
}
